<%--
  Created by IntelliJ IDEA.
  User: dj
  Date: 2018-09-03
  Time: 16:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>

    <%@ include file="/common/baseMeta.jsp" %>
    <link rel="stylesheet" href="/static/js/layui/css/layui.css" media="all">
    <script type="text/javascript" href="/static/js/layui/html5.min.js"></script>
    <script type="text/javascript" href="/static/js/layui/respond.min.js"></script>

    <script type="text/javascript" src="/static/js/common.js"></script>
    <script type="text/javascript" src="/static/js/dlcommon.js"></script>

    <title>Title</title>
    <style>
        .checkboxSpan {
            position: relative;
            background-color: #fff;
            vertical-align: middle;
            display: inline-block;
            overflow: hidden;
            white-space: nowrap;
            margin: 0;
            padding: 0;
            -moz-border-radius: 5px 5px 5px 5px;
            -webkit-border-radius: 5px 5px 5px 5px;
            border-radius: 5px 5px 5px 5px;
            display: block;
        }
    </style>

    <script type="text/javascript">

        var uid = "${sysStaffEntity.uid}";//唯一标识
        var lname = "${sysStaffEntity.lname}"; //登录工号
        $(function () {
            //设置只选择一个
            $('form').find('input[type=checkbox]').bind('click', function () {
                $('form').find('input[type=checkbox]').not(this).attr("checked", false);
            });
            $("#bh").change(function () {
                if ($("#bh").prop('checked')) {
                    $("#bhyy").textbox('readonly', false)
                }
            });
            $("#tg").change(function () {
                if ($("#tg").prop('checked')) {
                    $("#bhyy").textbox('readonly', true)
                    $("#bhyy").textbox('setValue', "")
                }
            });
        })
        function SaveData() {
            var strzt = "";
            $.each($('input:checkbox'), function () {
                if (this.checked) {
                    strzt = $(this).val();
                }
            });

            $.getJSON("/commapiV2", {
                p_dm: "Thz_Grinfo_Update",
                ID: getQueryStringRegExp("id"),
                zt: strzt,
                bhyy: $("#bhyy").textbox('getText')
            }, function (data) {
                if (data.success) {
                    alert('审核完成');
                    var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                }
            }, true);
        }
    </script>
</head>
<body style="overflow-y: hidden; overflow-x: hidden">
<form action="">
    <div class="layui-fluid">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 5px;">
            <legend>数据审核</legend>
        </fieldset>
        <div class="layui-row">
            <div class="layui-col-md2">
                状态：
            </div>
            <div class="layui-col-md10">
                     <span class="checkboxSpan">
                <input type="checkbox" name="cb" id="tg" value="已审核" checked>通过</input>
                         <input type="checkbox" id="bh" name="cb" value="已驳回">驳回</input>
            </span>
            </div>
        </div>
        <div class="layui-row" style="margin-top: 10px;">
            <div class="layui-col-md2">
                驳回原因：
            </div>
            <div class="layui-col-md10">
                <input id="bhyy" name="bhyy" class="easyui-textbox" data-options="multiline:true,readonly:true"
                       style="width:450px;height:150px">
            </div>
        </div>
    </div>
</form>
</body>
</html>
